package system

import (
	"context"
	"gf_blog_admin/internal/service"

	"gf_blog_admin/api/system/v1"
)

func (c *ControllerV1) DictUpdate(ctx context.Context, req *v1.DictUpdateReq) (res *v1.DictUpdateRes, err error) {
	res = &v1.DictUpdateRes{}
	err = service.SysDict().Update(ctx, req.Id, &req.DictFormInput)
	return
}
